OracleSessionlessTransactionOptions(int, OracleSessionlessTransactionStartBehavior, OracleSessionlessTransactionStartBehavior, bool)
This constructor instantiates a new instance of the OracleSessionlessTransactionOptions
class with the provided transaction options.
Declaration
// C# public OracleSessionlessTransactionOptions(int timeout, OracleSessionlessTransactionStartBehavior startBehavior, OracleSessionlessTransactionStartBehavior resumeBehavior, bool suspendAfterExecution);
Parameters
-
timeout
: time, in seconds, to wait for a transaction to become active after it is detached or suspended. If a non-active sessionless transaction is not resumed, committed, or rolled back within the timeout period, it is aborted. The timeout value must be set greater than 0. -
startBehavior
: determines if the sessionless transaction should start immediately inOracleConnection.BeginSessionlessTransaction()
or upon anOracleCommand
SQL execution. -
resumeBehavior
: determines if the sessionless transaction should resume immediately inOracleConnection.ResumeSessionlessTransaction()
or upon anOracleCommand
SQL execution. -
suspendAfterExecution
: determines if the active sessionless transaction should be suspended after anOracleCommand
SQL execution.
Exceptions
ArgumentOutOfRangeException - specified timeout is equal or smaller than zero.